package org.example.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName("sys_user")
public class SysUser implements Serializable {
    @TableId
    private Long id;
    private String username;
    private String nickname;
    private String password;
    private String phone;
    private String status;
    private Date createTime;
    private Date updateTime;
    private String avatar;
    @TableField(exist = false)
    private List<SysRole> roles;
    @TableField(exist = false)
    private List<String> perms;
    @TableField(exist = false)
    private List<SysDepartment> departments;
}
